Fixed the double back button bug