NXIO-192: Fix environment creation