Bug if range of a variable is 0