The Bb chord on the second line is effectively a substitutue for the D minor, so you can jam away the whole time on the same scale, the Bb chord just provides a litle variety underneath.