Fixed output message when the range is incorrectly specified