correction for a cut-n-paste bug when creating dihedrals and impropers