fixes broken search string deletion #242