Egglocke glitch

So I created some pokemon for an egglocke and and got an egg, then when my delta bulbasaur tried learning confusion there we apparently 4 moves, here are some photos

and then when I closed the menu this happened also I cant replace the move without a crash

I opened the move menu in battle and until another battle started this happened