Maybe check another ROM from here
Xperia Ray Android Development - xda-developers
Sorry I cant help you much .
its funny it worked for the first time and not the other
Just in case do one thing .
Do a factory reset and try flashing the ROM again .
I cant think of anything else .