Fixed issue in template