fixed the problem in addRow James pointed out