fixed template error with fetch sub