Fixing template bug.