Fix extendClass