We're very sorry to read this. Starting tomorrow, we will prepare a more robust patch to completely fix this feature once and for all, we hope.
all good take your time lol. I learned from the previous times I lost a pokemon while prestiging and now I make a save before hand so I can go back if something goes wrong xD
I hope this version will suit you ;)
Please feel free to give us your feedback.