Fix for thread access error during particle tests