fixing some errors with initial particles assignment