fixed upload finish handling