fixing error in query suggest