I have some problems when using it,I get a state in the database, and if it's off, I close it from the new rendering.   What should I do?