Fixes type check for sf2.5