Is it just a single row of pixels that isn't filling correctly? If so it could be a case of it drawing an extra pixel over the left border (and onto the right of your bitplane, which messes up the fill)
if you could post a screen shot maybe one of us will recognise an old bug or past mistake of our own