Fixing a bug in the shop resource