fix periodic service to run