Fixing custom config classes and handlers.