fix bug of clock