Fixed bug with Range across multiple Ruby versions