fix editing task is not properly working