Bugfix for AttachNoteToSearch