fix for delete protection