Set correct ID for message payload encrypting.