fix bug with editing task