fixed palette editor bugs