fixed extendClass