fixed error in attribute joining