Fixed bug where affinity was being etched as "null" instead of
"affinity" in cores