Found dangerous bug in structure matcher.