I was on Fiui too
Then i flash cm11 ,then miui
Try this works flawlessly
I wont be reponsible for anything happens to your device
Need some to test this and report back if it is working
Install adb and fastboot from here
1.unlock the bootloader ...