Fixed error in shift register