fixed millis() bug