fix schedule environment