fix a bug in loading region color