Fixed curtime bug