fix cloud ref exceptions