Fix loading order issue, env must be loaded first