fix for undefined error when google unavailable