Fix for search text crash
