Fix bug in upload_project