Fix for link weight adjustment