fixed crash on back button