Simlify setup of tmp.traj to avoid NA values in STATE.