Fixed saving hierarchy associations