Fix entries count on delete.