fix bugs of clocking.
fix bugs of clocking.