Fix config generator