ensured rendering of legend