Concealing items hidden in the bed

The bed contains a hairclip that should be hidden until the player searches the bed. Unfortunately, this happens:

x bed
A soft goose-down bed fit for a queen.

In the bed is a hair clip.

SEARCH THE BED
A puff of goose-down escapes as you search the bed. You found a hair clip!

Obviously that doesn’t quite work. I tried to implement a rule:

The bed contains a hair clip. Rule for deciding the concealed possessions of the hair clip: if the hair clip is carried, no; otherwise yes. 

but the rule does absolutely nothing.

Any advice?

Thanks.

Probably the best solution is to not actually have the hairclip there before the player searches the bed. This helps with any other possible unwanted effects as well.

Instead of searching the bed for the first time: say "A puff of goose-down escapes as you search the bed. You found a hair clip!"; now the hairclip is on the bed.

That did the trick. Thank you so much!