Fixed bugs regarding the dot timer and the mode timer