fix when changing system palette

Authored by sandsmark on Oct 14 2018, 3:59 PM.