Fix bug in links