Fixed issue that chunks are being uploaded more than once