fixed regression issues with setLinks (infinite look when callback on a field)