fixed the back button bug