fixed bugs in particle communication