fix wrong number of arguments on template resource