Fixed global setting this binding to the actual env and not the global object causing a number of other issues