fix update of particle