Fixed snippet delete function.