fix bug, java query