Fix a bug that does not pick up the most optimal match when the morse code is likely truncated.