change upload/fix nonEmptyPages