Fixes counting order

rows are removed from table starting at the far right