linking bugfix