fix bug where links are not shown/updated