Fix variable bit assignment in shifter