Correctly parse repeated header entries