fixing bug where individual doc attributes were added to default attributes