Fixed BUG of the distance tool, which was not correctly working in racemap-1.0.0.js.