Fix for escaping of weighted average keys

I think this broke adding special materials to random wands. :(