Fix #56 crash when downloading from bitbucket