fixed env var loading issue