palette editor bugfixed