Fixing template error