Make history search unique