A minor fix for the speed/direction conversion