fix problem on encodeSSK