Fix issue for R's template