fix snapshot bug