Set correct opacity