fix header sending