fixed handling of no bad bins