fix bug in enter / exit routing with multiple matches