fix row count offset