Fixed excpet for the time bug