Fixing the use of skipped range