The only current fix for the maewing glitch is to cryopod the magmasaur and place it back down. Best of Luck if you went for the early-game egg.

More Magmasaur Taming & KO Tips