fixed delete check