fix bug in color hist