fixed attributes bug