Fix bug: Remove old header class when selecting a new one.