fix IOBE caused by incorrect handling of matching constructs