attr setter fix