fix inheritance of extra attributes