Fixed snapshot bug.