Fixed env ref