fix error for self.palette256