Fix a problem that referes a global object.