fixed error when delete request