Fixed bug in tabular legend clicks