Fix two errors in _bit_shift