Adjust loading order for global var function.