corrected section reset so documents end up in right sections