Fixed minor snippet bugs.