Fixed some bugs and failed links