-fixed a bug with clock tab causing infinite loop sometimes