Fixes inheritence.