manually fix up links