fix sf2.5 compatibility