Fix nested nested attributes for earned badges