Fixed small display issue with legend in ad-hoc search interface