fixed a crash when an error occured in gdrive