Fixed a bug with legend

https://github.com/mostaphaRoudsari/ladybug/issues/62