fix slice until the end of the current bucket