fix incorrect query mode