fix for delete detection