fixed major bug involving labtable placement and sorting