Fixed case-classes inheritance.