fixed bug with time_mode being set to 2
fixed bug with time_mode being set to 2