阴差阳错

yīn chā yáng cuò

(idiom) due to an unexpected turn of events

yīn

variant of 陰|阴[yin1]

chā

difference; discrepancy

yáng

positive (electric.)

cuò

mistake