fix java mess