fix UI bug where one can only click on a data point with proper frame sorting the first time