bug fix: global object injection must happen a bit sooner.