Fix bug that prevented clearing search text