fixes to stop distance calculation