updated the logic that clears the patient sections to fix an issue that was causing sections to only be saved every other save