fixed color and opacity bug