fix bug when schedule system tasks