Perhaps it's useful to note down in your guide how to make MiFlash restore the partition table as well?
By default, MiFlash just formats the partitions and flashes everything again (radio, recovery, rom, ...). If your partition table is somehow ****ed up, MiFlash will fail to recover your...