Fix back button crash.