Fixed inherintance definition