Fixing env error