fixed get time bug