fixed palette editor bug