If anyone encounters this bug (again), could you please give any
info regarding how this can be reproduced? Which Pokemon was added
to the storage box last and how? Did you manually move it there?
Receive it via trade? Were all other storage boxes full?