Fix to save the correct object (bulb) state.

Fixes the internal bulb state.