Fix bug in rel. distance calculation (wrong equality).