Major bug fix

While adding a new row to a new data, the change was not being reflected
in the Vector, hence breaking the code. Fixed that.