fix submitting an activity more than once