fix bug in integration of specdata