fix extra attributes adding