query find bugfix