fix bug when signing a message of 256+ characters