fixed an add/del row bug