fix for a range issue