time slice bug fixed