Fix to save the correct object (bulb) state.