fixbug in tc_clock_selec