bug report in sf.cpp