Fix some problems of activity display