Fixing issue #84: validating pen in inventory