fixed little issue in the java side that was crashing