As you are stringing the halyard, wipe the torque out of it at every stage. After leading the halyard through a block grip the line and drag your hand along it towards the free end. Run it through the next block and then drag it through your hand again, wiping the twists out the free end.