small range fix for gathering