Fix some errors with cache downloading