fix encap type swapped