fix matcher logic error