fixed the typos in the environment variable expansion