Fix the target point with path mode. Do some recording stuff cleanup.