Fixed bug in sffs