fixed issue with editing cancel