query find fix