Fixed bug where sorting tables shrank it