fix right shift and start bit range.