Fixed #1. Immediately save Snp before query can be overwritten.