Fix links and a few other behavours.