Simplifies the code for Compose

Just reverse the list in constructor.
Fixes a bug where the wrong attribute was used for state functions.