fix bug: data/template does not exist