fixing activity logging