corrected time bugfix if ID is entered before time