Fix template array issue.