fixup emptyCount