fix a bug in XOD