a bugfix of ha->ry comversion