Fixed legend panel not showing the legends