Fix bug in trying to link nil values.