fix bug of 'pending activities do not update after submission'