Fix substring search plugin.