query time bug