Pass self to getter for env decorator
Fix mad typo in getattr