fixed the chain problem with the back button