maybe fix sf=nil error