Fix isDeleted() method