Fixing activity/ notification log when teacher schedule is associated with program