Fix link removal

Thanks to Luyi Guo for finding and fixing this.