fixed an error in the template