Fix the inheritance problem with this pattern