Attempt to fix isAsssignableFrom crashes