Fixed warning thrown when creating teaching period.