Fix writing of relationship anchor points