fixes for delete