isSP bug fix