fixed a bug: extra <snippet> tag