fixed the linking problem of the links parameter