bug fixes on uploads.