No I never used the factory reset function, I always format it manually with CWM, I just tried it, the md5 is not corrupted.
It's always failing after:
"Writing image sb12.mbn...
qet_perm : some changes failed
E : Error in /storage/sdcard0/Mi2-4.6.6-Fr-signed.zip
(status 7)
Installation aborted."