Fixed inheritance in elements and internal.