fixed _lastUpdate time to correctly use the time in milliseconds