Fixed crash when hiding search view