fix multithread crash with low particles count