Fix flashy opacity bug