Fix environment set