Wipe all except /system and /vendor then restart to recovery. Use Format Data option then restart to recovery. Connect to PC, put rom zip to sdcard and flash. This is the cleanest way to install rom. xiaomi.eu flashes required firmware, vendor and system.