Fixed bug that config could not be created.