Fix for latest chg_traj code.