fix bug for parallel naive