deal with empty query value