modify a bug in lbp_feature