fixed bug in merging search attributes