Fixed bugs about color and opacity