fixed rip_sword function