Fix a corner case - correctly erase array when new row is started