fixed bug with editing done