Fix inherit attributes