fix bugs on sas#to_sfw