Fix config error and classpath precedence.