Fixed an error with link and template