fix the binding logic of palette