fix activity log bugs