fix bugs about data upload