fix a bug: when color is like 808080 and passed as an int