Fixed the back button breaking when returning to the root