fix query
patches