Fixed bug in legend parameters component