Fixing issue #28 - ranges are always inclusive