Fixed a bug with colorised leaves