Backport hrm_programme_hours fix