fix a bug in javatools