fixed the smooth transition of the back and next b