MADS: Fix update of palette due to palette cycling