fix java call