Fixed weird bug in which external links were not being generated anyway.
Fixed last id.