Cloud detection fixed