Bugfix with global object in node environments