Dimitri : bug concerning relative distances fixed