Fixed issue with periodic job