Fixed bug in config creation