fix periodic task