Solved the color switching