Fixed bug with linking method.