While putting the padlock back together I have recognised that the nail has to aimed at the bottom, just in case anyone wonders why. The spring fits perfectly into a deep hole at the shackle so it won’t twist there. The nail will then prevent the spring from twisting at the bottom of the hole where the shackle fits in.