fix bugs of templates path and internalviewresolever.