Hi there.
When you bring the yarn in front to purl, are you bringing it between the needles? People often have a bit of a hole when switching from knit to purl and vice versa, but the long strand makes me think that you might be bringing the yarn over the needle somehow.