bug fix for the routine where only one timeslice is used