Fix previous page problem