fix 500 internal error: can not find template dir