fix error when not finding match