Fix config template preparation