Merge pull request #39 from dmichiels/master

fix bug when loading a subcomponent or a component without options