Fixed problem with subclassing classes that cannot be subclassed