Fixed bug in delete upload