In the latest version, there is a bug with rebellions. Sometimes territory does not change hands or does it incorrectly. India rebelled against the British Empire and liberated Western India according to the message. But it remained a British territory. Dissolved Spain had won the rebellion against ungoverned territory but instead of Spain, the territory switched to the French one.
So either there is a bug in the rebel feature or it shows an incorrect message.