Fixed bug in guard snippet.