Fix scoping for skipped gems.