Fixed NPE regarding config creation