Fix the accidental use of global variables after get_world_time() change