Added missing ends on the links