Does the sd-ext partition get wiped out after flashing a different ROM?
I think your build f MIUI doesnt have the code for mounting the SD-ext partition on boot.
To check this, open the init.d folder in your new ROM and see if it has any file relating to Sd-ext.

This link has a init.d script for mounting the SD-ext partition link