fixing freeze bug on color scheme change