fixed java translation bug