predict.gSF error fix