Correct bug for displaying pages