Fix empty query result