Made sure inheritance works for attributes.