bug fix.
- fixing speed calculation.