Fixing bugs in prev/next, Chrome display error