Fixing the algorithm by using INuiCoordinateMapper.