fix job history search issues