Fixing env offset arithmetic and access.