revise bug in xQueryCompatible.py