fix bug on tracking velocity