added constructor.

Nate fix Leaf Component.
Merge origin/master