fix velocity macro bug