Fix a palette decoder bug