fixed issue with palette