fixing back button bug.