fix bugs on bsig-engine.rb; sfp/sas.rb