Fix bug.
Optimize color table.