fixes tablesorting