fixed snippet issues