Fix snippet form template bug