Correct a delete header section logic