Avoid 'superclass mismatch for class Slim'