Solves problem with superclass mismatch.