Fix for duplicate TM search.