Fix crash when editing pokemon in gen 3