update velocity dependency,fix a bug