Fixed bug in template to remove wrong link