fix time slot bug