Fix AMCObject for support more than one container type