Fixing light color value sending using the AppPreferences class