Fixed bugs of activity updating.