Default Sim unlock

I have an unlock HTC Vivid phone, a few months ago it got completely wet, i got it dried and it turned on again. But i have a problem with it, the phone is network locked, so i went to have it unlock it again but every time they enter the code the phone reboots and ask again for the unlock code. The phone is rooted and had a custom rom. the question is, is there a way that the phone saves the code and doesn't ask for it anymore?
will it work again?