Fixed consistency of composition hooks.

-Fixed a bug in the widgets sample.