Fixing all the problems to run particle filtering