Fixed potential bug with palette updater