bugfixed add component