java detection fix