Fixed bugs in add Row