small fixes for downloading patches