Fixed wrong route map path calculation for recursion