fixing header overflow problem