Fix for printing activities.