I tried restoring it to before I messed with the save file. I can successfully extract the save file inject pokemon and do all the editing, only problem is that PokeBank won't recognize the game anymore. The 3DS knows it's Pokemon X because it still shows the icon on the main menu, but PokeBank tells me otherwise.