Fixed crash upon hitting back button while searching