fixed timeslice indexing bug