bug in snippet/delete