fix a bug about RenderTemplate's renderIn