fix link extraction