fix reversed SNAPSHOT logic