Fix classpath and fix downcase function