attempted to fix velocity errors