bug fixed in the output of range