fix sample traj in pmcmc