minor tweaks in link provider, fixes #239
fix