fixed bug on color class