Fix velocity formulat