Fixed crash in row count