I remember watching a cartoon as a child, in the 80s or early 90s and I can't remember the title (or a lot of details about it). The setting reminds me of "Nadia: The Secret of Blue Water": we could be at the end of the 19th century, but my memory does not support me much in this.
Anyways, the protagonist of the cartoon is a girl on a wheelchair who is supported by a female genie wearing "One Thousand and One Nights" clothes. The genie protects the little girl from the assaults of the minions of an evil entity; in the first episode of the series the minions disguise themselves as workers of a circus just arrived in the town where the little girl lives. For some reasons I do not remember, the evil entity wants to terminate the little girl.
At the end of each episode the minions are inevitably defeated by the magic of the genie and the evil entity transforms them in little worms, for eternal punishment. The worms retain the original heads (so they continue to talk to the evil entity) and live in a rocky-bowl next to their master.