Fix crash due to java being bad