bugfix for SPC