Removing extra link close tag