fix bug in java file