Fixed bug in the EoM