prevnext fix