fix auto attributes