fix velocity sign bug