Fixed error with setting search tag