Fixed Error: decoding for error correction