Default [Q] IMEI keeps disapearing after flashing

So after installing a rom my imei is gone, i have restored it BUT i do want a custom rom, i used CWM recovery to flash the rom (AOKP 4.4.2) so does anyone know how i can flash a rom to my xperia sp without losing my IMEI?