Fixed bugs in PeriodicService caused by using the service set