fixed undefined legend item