Fix the way we register the global object