I guess I find a bug when I'm using pkhex(161221) and I think I should post it here.
The bug is: a pokemon modifed by pkhex may change its OT name after trade.
Here come the details:
The Espeon in the figure was caught by me in the game 100% legally. I only moved it from one slot to another via pkhex (by setting a new one and deleting the original).
When I traded it with my friends today I noticed the OT name has been changed to "Moon." as show