Fixed crash that occurs after clicking on 'History' button