Fix crashes: Adding new device. Execute a scene.
Fix bug: Execute a scene: Transaction was not cleared after executed