Fixed some bugs in changeColor