Fixed an error in the link creation script