Fix deletion of component parts.

My bad.