fix a bug in detachment of components with Attribute connection. there is still a known bug that i'm working on