fixed bug where rows were being placed outside of the table