Fixed bugs related to text color.