Fix fold and build method in Component - #11
Merge pull request #16 from ngyuki/pr-fix-fold

Fix fold and build method in Component