Fixed a bug where certain palettes persisted between maps.