fix periodic for unix