This is a good advice.You could use a small velcro strap wrapped around headstay to keep tack from floating away or the head pennant.
Looking at the picture you would like the sail close to the forestay as possible. A simple way would be a strap of some sort wrapped around head stay. Taking in the halyard too hard will generate other issues.