Fixed ranging issue
Fixed 16-bit sign extension problem