bug fixes in links