actually fix nonEmptyPages