Fixed snippet bug introduced by commit #9ceccc3318b5b23894bbf1cc71499b5e9fa661c2