fixed looping error in uploads. it would never stop if the activity was a duplicate