Fix cut the extension of the catalog based in the global value