fixing bug on history search forms