fix silly problems with edit doc