Fix infinite recursion in config module