Just so things are clear for Kaphotics.
You export your save file "Main" in homebrew with the use of savedata manager. You edit that save with PKHeX. Toy then save your edits by going to "File/Export Save/Export Main" and then inject that save file back into your game with savedata manager. Then, once injected back into your game, the edits you made all appear wrong?