fix bugs in pocketGems