Fix error while downloading