fix classpath bugs.