Fixed bug where first components were added last in component array