Ensure that index matches scope