Tiny fix to alterHeader method.