Fixed bug reading palette colors