fix row increment bug #1