Make search & replace work properly.