One such astromech called Red malfunctioned purposely so that R2-D2 would end up with the Skywalkers.