Fix Lu et al. for API change, fix a bug in color histogram part