fix hidall java function