Fixed problems with upload data