fixed emtpy snps bug