fix endless loop bug at bookmark.php's paging