* Fix bugs when uploading data to server