Fix empty query null