fixed issue with 0 byte transfers