fix dispatch header check