fix a bug for retrieving compoments inside composer