Fix delete check.