fixed add component errors