Fixed the function for apply_force