fixes to move_towards_target_smooth()