fix opacity bug