Fixed decoding of signature