Fixes inheritance