fixed the issue of slicing on the wrong bin