Hi

Yes, I agree with last answer and i think this the right procedure.

you have to get Exit-Re-Entry visa/permit to solve your problem

thnaks