bugfixes in the treatment of bins