fix attr, make sure we don't overide the original data. copied from feedmagnet/master