fixed bug in armscomponent. Was copying reference instead of deep copy