Fixing initialization issue in Google Cloud scripts