fix query data