fixing bug in add Row