fix for transfers greater than 65K