Bug fix #3898

This is the updated version of my previous fix. Last time, although the rows were updated everytime a column with index was deleted, but the list of indexes weren't.

In this patch, I've fixed that part too.

Sorry for the delay, My exams leaves me with almost no time :(