Bug fix for receiveBin when length > -1