fix clicking after resorting table