Straight from the walkthrough:
Q: How do I get through Lielle's dungeon with the switches?
A: You need to turn every switch once (to the left), but the switch in the flame riddle room has to be set back (after obtaining the chest). In the top right are 3 switches close to each other. The lowest of those three also needs to be turned back after the other two are active.