chbind: update length calculation