fixed errormsg regarding transitions at end of doc