Fix snippet bug