Fixing bug with call to undefined time.