bug fix for incremental index and 1 row