fixed legend layout and text color