fix search filter so it doesn't break the search plugin