Fixed color index error