fixes a bug to import spc