Fix case with 1 or 2 pages loaded