fixed bug in function links.