Fix errors with empty links