fixes opacity scale bug