In my experience over all the years - (this will make you feel better!!) :-
Just as you think they are housetrained and you are SO proud.... they regress and have silly accidents .. just keep going and praise them etc when they are good and I really think this is the last stage in training --- I've had dogs for 30 yrs ... don't despair!!
Ana xx