Fix env buffer
Merge pull request #55 from wdavidw/patch-1

Fix env buffer