Fix update code and links