fixed internal time reset bug