Fix range comparison operators