Fixed bug with baking

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