Fixes link indices