Corrected the bugs in binner.