fix for delete error