fixing scheduler run process in Mac