fixed a search bug where the query was not send properly