Fixed an out-of-bound read error in bit range ops.