fixed truncation of header