1. fix a bug when choosing color;