fixed a problem with spc