Fixed negative velocity bug.