corrected Time bug