fix select more than one color, the result is incorrect