:gb: Fixed motion calculation.