fixed legend layout