Improved assert message + minor fix

Improved the assert message of the updateLink method.
Removed a duplicate line.