Fixed the error with colors and class variables.