bug fixes in uploads