Fixed affiliate saving issue