Fixed the scheduler tick duplication