bug fix in links overriding