Fix broken nested match.