first of all make saving data on your phone.
Then download the appropriate firmware. Steps for installing a ROM is on the site.
Do not forget to restore the phone from the stored data.
In general, do as the first time established the firmware from MIUI.
Good luck.
translated by Google