Fix stack overflow exception in map matcher
Arrow direction