Fixed error with data upload