bug fix for query in seat