fix encoder indexing.

need to hit tgt_offset not tap_offset