Fixed the usage of snapshot functions.