Fixed improper interface for convert_to_generalized_force