global timer max range number wrong bugs fixed