fix debug when no header