fix msg split in encryption case