Set initial opacity value correctly