fix @ scope in template