bug fix in snippet model