Object state is not working

I have a course with six scenes. The learner access each scene from 6 objects in one of the scenes. I want the the state of an object to change to completed/visited when all the slides in a scene are visited. Not complicated at all. The problem is that the variable changes but not the state of the object. 

I made a simple example and hope that somone can figure out what is wrong.

Thanks in advance

Maria 

4 Replies