Fixed bug on add component