Fix config factory