fix legend layout