fixing the emtpy snp bug