fixed _getSPClass