Fixed dynamics bug