bug fix for snfilename not initialize issue