fix bug on links, edits