fix header element assignment