Calculation threads bug fixed

Fixed bug with random atomic weights selection