X9d bug fix