Fix bug removing multiple dihedrals in main rtp entries