Corrected snapshot variable

Corrected snapshot variable in nested then statement