fix the back button problem