fix prev/next issue