Fix header and insert debug weiere call