fix right and left scroll legend in terms panel