Fixed row numbers to update after addition/deletion.

Starts from 0.
you needs this.