fixing error document