Fixed bug in component manager