I figured out the problem. When I generate the topol.top file, it sets the dihedral function to '1', however, in the nonbonded parameters, the dihedral function is '3'. Changing the the topol.top dihedral function to '3' fixes the problem. Cheers