Fixed #248, Resolved problem when removing Command and Components