fixed the reference to the global_schema