Fix for calling cloud functions.