fix for delete method issue