Fixing layer count in catalog.