Fixed a bug with LFSR