solved bug of multiple ncpus increments in the same cicle