Fix association writing. 4AM coding strikes again.