fixed check to add new row if previously removed