bugfix for links