Fix error in nearest page