Fixed snippet bug