Fix wrong usage of env.get()