fixed a bug in barrel shifter