Trying to fix java error