Fixed limit in ranges
Fixed negative value packing/unpacking