Fix syntax errors in particle filter