If a manually scheduled period shall not be changed by automatic scheduling you can lock it in the timetable. A locked period has a lock icon next to its name.