Fixed ordering of activity.