Fixed bug with activity updating.