Fix auto fill enabled bug when only one string match found.