fix using error color index problem

Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>