Fix inherit definition