fix query time