add fix for setting variables with a range on values