fix bug with dragonfly leaving trailing bits