env() vs g bug