fixing header debug output