fix for delete