Bug fix and code standard cleaning

Commit #118922

Used the Coder module to brush up on some of the modules.

Fixed a bug where schemes would change across themes.