fix query ability