After I have beaten the Ghost gym,I only got the badge and the ability capsule, but no the Ghostium Z.I checked before the gym battle and I had enough slots in my inventory to get all the rewards.After the battle, the Soul Badge that I have put in the off-hand before was back in the inventory...